package org.jeecg.modules.bigdatashow.service.impl;

import org.jeecg.modules.bigdatashow.entity.Constitute;
import org.jeecg.modules.bigdatashow.entity.Month;
import org.jeecg.modules.bigdatashow.entity.Statistics;
import org.jeecg.modules.bigdatashow.mapper.ProfitMapper;
import org.jeecg.modules.bigdatashow.service.ProfitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProfitServiceImpl implements ProfitService {

    @Autowired
    ProfitMapper profitMapper;

    @Override
    public Statistics find() {
        return profitMapper.find();
    }

    @Override
    public List<Constitute> findByType(int i) {
        return profitMapper.findByType(i);
    }

    @Override
    public List<Month> findAll() {
        return profitMapper.findAll();
    }
}
